#!/usr/bin/env bash

docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
echo "======= multiarch/qemu-user-static is done ========="

sfc_source=/home/hanxiao/wspace/code_from_git/SmartFarmWorkspace/
sfc_docker_target=/home/hanxiao/wspace/docker_src/sfc-src/

rsync -av $sfc_source $sfc_docker_target --exclude="build" --exclude=".*" --exclude="*/.*" --exclude="build-*" --exclude="vs*"

docker run -it --rm \
--user linaro \
-v "$sfc_docker_target":/home/linaro/sfc-src \
-w /home/linaro/sfc-src/build_ninja \
debian-dev-cpdevice:buildcpp \
/bin/bash
